package com.example.ccj.b.c.ui.install;

public class InstallText extends InstallItem{

    private TextType textType = TextType.text;
    private int maxLength = 255;//最大长度
    private boolean isMast = false;//是否必填

    public InstallText(String installName,String value){
        this.installName = installName;
        this.value = value;
    }

    public InstallText(String installName, String value, TextChangeListener textChangeListener){
        this.installName = installName;
        this.value = value;
        this.textChangeListener = textChangeListener;
    }

    private String value;

    private TextChangeListener textChangeListener;

    public TextChangeListener getTextChangeListener() {
        return textChangeListener;
    }

    public void setTextChangeListener(TextChangeListener textChangeListener) {
        this.textChangeListener = textChangeListener;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }


    @Override
    public int getType() {
        return TYPE_TEXT;
    }

    public TextType getTextType() {
        return textType;
    }

    public void setTextType(TextType textType) {
        this.textType = textType;
    }

    public int getMaxLength() {
        return maxLength;
    }

    public void setMaxLength(int maxLength) {
        this.maxLength = maxLength;
    }

    public boolean isMast() {
        return isMast;
    }

    public void setMast(boolean mast) {
        isMast = mast;
    }

    public enum TextType{
        number,
        text,
        xiao,
        phone
    }

}
